package com.googlecode.openauth.web.action;

import java.util.List;

import com.googlecode.openauth.web.dao.IRoleDao;
import com.googlecode.openauth.web.dao.IUserDao;
import com.googlecode.openauth.web.entity.RoleInfo;
import com.googlecode.openauth.web.entity.UserInfo;
import com.opensymphony.xwork2.ActionSupport;

public class UsrRoleAction extends ActionSupport {
	private IRoleDao roleDao;
	private IUserDao usrDao;
	private List<RoleInfo> roleList;
	private List<UserInfo> userList;
	@Override
	public String execute() throws Exception {
		roleList=roleDao.getRoles(new RoleInfo());
		userList=usrDao.getUsers(new UserInfo());
		// TODO Auto-generated method stub
		return "success";
	}
	public IRoleDao getRoleDao() {
		return roleDao;
	}
	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}
	public IUserDao getUsrDao() {
		return usrDao;
	}
	public void setUsrDao(IUserDao usrDao) {
		this.usrDao = usrDao;
	}
	public List<RoleInfo> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<RoleInfo> roleList) {
		this.roleList = roleList;
	}
	public List<UserInfo> getUserList() {
		return userList;
	}
	public void setUserList(List<UserInfo> userList) {
		this.userList = userList;
	}
	

}
